SRCS:=$(wildcard *.c)
OBJS:=$(patsubst %.c,%.o,$(SRCS))
out:=main
CC:=gcc
CFLAGS:=-g
$(out):$(OBJS)
	$(CC) -o $@ $^

#.PHONY:clean rebuild
rebuild: clean $(out)
clean:
	rm -rf $(OBJS) $(out)
